#python operator
Explore tagged Tumblr posts
tpointtech · 27 days ago
Text
0 notes
floridaboiler · 1 year ago
Text
Tumblr media
source - https://twitter.com/woofknight
117 notes · View notes
salendola · 2 years ago
Text
I don't think I've ever put all my terrible "Borderlands 3 meets Monty Python" stuff up here, have I. Well, now I have.
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
246 notes · View notes
zipquips · 23 days ago
Text
growing up and learning how to do math with normal, regular calculators that aren't programmed to do order of operations has made me the worst programmer ever. i add an obnoxious amount of parentheses bc i refuse to trust anything other than myself to get the order of operations correct
8 notes · View notes
silverpiwon · 4 months ago
Text
I really feel like the new got7 song might become a hit and I really hope it does because it could remind kpop companies that they can make music that’s simple but good in its simplicity
17 notes · View notes
commonguttersnipe · 5 months ago
Text
Monty Python as Operation Mincemeat: The Musical
(Oh, you just know that I have a new favourite musical)
Montague: Eric Idle
Charles: Terry Jones
Jean: Michael Palin
Hester: Graham Chapman
Bevan: John Cleese
8 notes · View notes
frog707 · 7 months ago
Text
Wilma again
I have ongoing issues with the Linux Mint installation on the laptop I use for software development and blogging.
You may recall I tried upgrading to version 22 (code name: Wilma), encountered a graphics regression, and had to revert the upgrade using TimeShift. Since then, my Linux experience hasn't been quite right. While troubleshooting an issue, I uninstalled Python; this broke APT, causing routine software updates to fail.
Yesterday I created a new partition on the HDD and attempted a clean install of Wilma there. After several tries, I suspect that my largest USB thumb drive (NXT brand, purchased in January 2024) suffers from data corruption.
Believe it or not, my 2nd-largest thumb drive is too small to hold the 2.9 GByte ISO image, so this morning I'm off to buy a new thumb drive.
7 notes · View notes
clonecoding-en · 1 year ago
Link
Mastering Arithmetic Operators in Python
This article provides a comprehensive exploration of Python's primary arithmetic operators, elucidating their functions and practical applications. From basic addition and subtraction to more complex operations like exponentiation and modulus, each operator is explained with clear examples and detailed explanations. The article goes beyond numeric calculations, demonstrating how these operators can be used with strings and lists to perform concatenations, repetitions, and mergers.
By understanding and mastering these arithmetic operators, readers can effectively manipulate data, perform mathematical operations, and build more intricate algorithms. Whether they are beginners or intermediate Python programmers, this article serves as a valuable reference for honing their programming skills and expanding their understanding of Python's core capabilities.
3 notes · View notes
mildew-mop · 1 month ago
Text
Look, if someone shows me a video of an improperly kept animal, they're getting a lecture.
If someone tells me about how they got bit by an animal, I'm going to ask questions until I can explain (in detail) how that was their own fault.
Too many people have too little knowledge about the behavior and well-being of animals, and it pisses me off.
Even like "easy" or "common" animals like cats and dogs. People just dont teach kids how to interact with them.
I've met a few too many people who defend abusing hamsters because they can't admit that maybe they weren't well-versed on hamster care at 4 years old. Perhaps they were misinformed.
Torture to be a fan of any exotic animal when it's like. 90% of the footage of them is gonna be from dodo videos of people illegally keeping them as housepets . Really wish I could enjoy this video of a lynx but I also kinda wish everyone involved would die
24K notes · View notes
spindlecrank · 4 months ago
Text
It's Not Just An Operator...It's a Ternary Operator!
It's Not Just An Operator...It's a Ternary Operator!
What is the ternary operator? Why is it such a beloved feature across so many programming languages? If you’ve ever wished you could make your code cleaner, faster, and more elegant, this article is for you. Join us as we dive into the fascinating world of the ternary operator—exploring its syntax, uses, pitfalls, and philosophical lessons—all while sprinkling in humor and examples from different…
0 notes
fruitsofhell · 4 months ago
Text
addicted to watching videos about people doing high-level and hardware programming i can't even comprehend but thinking its so cool and sexy,,,
1 note · View note
cups-official · 6 months ago
Text
not gonna lie I hate javascript's === operator less than python's //
0 notes
codeexpertinsights · 6 months ago
Text
Harnessing Linux for Data Science: Integrating R, Python, and Machine Learning
Linux is the most appropriate OS for data research since it is portable, expansible and complies with many different open-source software. In this respect, machine learning frameworks can be easily linked to the powerful computation languages such as R and Python in Linux to let data scientists fully optimise the resourceful processing efficiency and model construction. It is now time to consider how these technologies improve the productivity of data science processes. They offer a less rigorous process when clients begin to employ Linux as their foundation, coupling the utility of Python with the statistician might of R. They also improve the understanding, in the process of raising production.
0 notes
thegrowthtimes · 10 months ago
Text
Getting Started with Python: A Beginner's Guide (pt 2)
They say teaching is the best way to learn. Consider subscribing to the website!
Expanding Your Knowledge: Collections and Control Flow In Part 1 of our beginner’s guide to Python, we covered the basics of variables, data types, and conditional statements. Now, let’s dive deeper into collections like lists, tuples, and dictionaries, as well as control flow mechanisms such as loops and functions. Lists: More Than Just Arrays As mentioned earlier, a list is a collection of…
0 notes
chronomally · 11 months ago
Text
How I feel trying to figure out how to manipulate images using Pillow
Tumblr media
0 notes
assembly-official · 6 months ago
Text
Reminds me of something I wrote in Python a while back. Basically I got a list numbers and I needed to return a list list of booleans (or ints where every value is just 1 or 0 of course), where the output contains every combination such that the first input_list[0] values are all the same and the next input_list[1] values are all the same etc.
So if the input is [2, 5, 3] the output should be
[[T,T,T,T,T,T,T,T,T,T],
[T,T,T,T,T,T,T,F,F,F],
[T,T,F,F,F,F,F,T,T,T],
[T,T,F,F,F,F,F,F,F,F],
[F,F,T,T,T,T,T,T,T,T],
[F,F,T,T,T,T,T,F,F,F],
[F,F,F,F,F,F,F,T,T,T],
[F,F,F,F,F,F,F,F,F,F]]
The proper python way to do this is probably to use some numpy function, or some other bollocks I know nothing about. What I did was (variable names changed, because they were actually good names and told you what they represented, but you don't need to know what this code was used for so you get input_list and this_one) :
res: list[list[int]] = []
input_list_len = len(input_list)
for i in range(2 ** input_list_len):
this_one: list[int] = []
for j in range(input_list_len):
this_one += [(i >> j) & 0b1] * input_list[j]
result.append(this_one)
return result
PROGRAMMERS OF ALL KINDS AND SHAPES, PLEASE UNDERSTAND THIS
A code that doesn't have comments, even if it's well written, is not always very good code. When you want to optimize your code, you're might have to write ugly stuff sometimes ! Look at what data oriented design can produce for example. When optimization introduces unreadability, even if everything else is amazingly written, you need to add comments.
Anyway, use your cli tools on me plz, im cool, im pretty, look at me, blip bloop, blip bloop ❤️💾
102 notes · View notes